Duplicated /root/stage in path
Metadata
Current evaluation
No evaluation has been recorded for this issue yet.
Issue body
I see a strange behavior in Snapcraft 7.1.3 when building the attached snapcraft.yaml.
>>> Execution >>>
$ snapcraft clean --use-lxd
$ snapcraft prime --debug --shell-after --use-lxd
...
Staging va-drivers
+ set -ex
+ snapcraftctl stage
+ strip /root/stage/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
strip: '/root/stage/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so': No such file
Failed to run 'override-stage': Exit code was 1.
snapcraft-chromium # find / -name 'iHD*.so' 2>/dev/null
/root/project/squashfs-root/root/stage/usr/lib/dri/iHD_drv_video.so
/root/stage/root/stage/usr/lib/dri/iHD_drv_video.so
/root/parts/va-drivers/install/root/stage/usr/lib/dri/iHD_drv_video.so
/root/parts/va-drivers/build/media_driver/iHD_drv_video.so
<<< Execution <<<
As far as I understand, either /root/stage/root/stage is a wrong place to stage that file, or "$SNAPCRAFT_STAGE" is wrong, since the error comes from
strip "$SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri/iHD_drv_video.so"
Evaluation history
No evaluation history available.